package com.aaa.mrcai.util;

import io.goeasy.GoEasy;
import io.goeasy.publish.GoEasyError;
import io.goeasy.publish.PublishListener;

/**
 * @author meowyf
 * @version 1.0
 * @ClassName LCL
 * @date 2021/12/11 10：29:09
 */
public class GoEasyUtil {
    public static void goEasy(String sdate){
        GoEasy goEasy = new GoEasy("rest-hangzhou.goeasy.io", "BC-3ff9bdf2f0924498892b14383f53b922");
        goEasy.publish("demo", sdate, new PublishListener(){
            @Override
            public void onSuccess() {
                System.out.println("Publish Success");
            }

            @Override
            public void onFailed(GoEasyError error) {
                System.out.println("Publish failed "+error.getCode()+":"+error.getContent());
            }
        });
    }
}
